<?php
/* @var $this StatusAcuerdoParticipanteController */
/* @var $model StatusAcuerdoParticipante */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'status-acuerdo-participante-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>true,
        'enableClientValidation'=>true,
        'clientOptions' => array(
            //'validateOnSubmit' => true,
            //'validateOnChange' => true,
            'validateOnType' => true,
        ),
)); ?>

	<p class="note">Los campos con <span class="required">*</span> son requeridos.</p>

	<?php echo $form->errorSummary($model, 'Los siguientes campos tuvieron errores, por favor arréglelos:'); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Responsable'); ?>
		<?php
			$estadosArray = CHtml::listData(Usuario::model()->findAll(array('order' => 'nombres')),'id','nombresAndApellidos');
	 		echo $form->DropDownList($model,'id_usuario',$estadosArray);
		?>
		<?php echo $form->error($model,'id_usuario'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Guardar'); ?>
	</div>

<?php $this->endWidget(); 
?>

</div><!-- form -->